﻿//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Common Core Extensions
//===============================================================================

using System.ComponentModel;

namespace EntLibContrib.Common.Configuration.Design.Editors
{
	/// <summary>
	/// Provides a user interface for selecting a binary resource name with a specific filter.
	/// </summary>
	/// <remarks>This editor uses a <see cref="FileFilterAttribute"/> to get its file filter from</remarks>
	/// <seealso cref="FileResourceNameEditor"/>
	[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2117:AptcaTypesShouldOnlyExtendAptcaBaseTypes")]
	public class BinaryResourceNameEditor : FileResourceNameEditor
	{
		#region Construction
		/// <summary>
		/// Initialize a new instance of the <see cref="BinaryResourceNameEditor"/> class.
		/// </summary>
		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods")]
		protected BinaryResourceNameEditor()
    {
    }
		#endregion

		#region Private Methods
		/// <summary>
		/// Finds the type converter.
		/// </summary>
		/// <returns></returns>
		protected override TypeConverter FindTypeConverter()
		{
			return new BinaryResourceNameConverter();
		}
		#endregion
	}
}
